<?php
declare (strict_types = 1);

namespace app\admin\model;

use app\common\model\Admin;
use think\Model;

/**
 * @mixin think\Model
 */
class Script extends Admin
{
    public function business()
    {
        return $this->belongsTo('business');
    }
    public function scriptSettingNd()
    {
        return $this->belongsTo('script_setting','script_setting_nd_id');
    }
    public function scriptSettingXs()
    {
        return $this->belongsTo('script_setting','script_setting_xs_id');
    }
    public function scriptClass()
    {
        return $this->hasMany('script_class');
    }
    public function scriptRole()
    {
        return $this->hasMany('script_role');
    }
    public function scriptScreen()
    {
        return $this->hasMany('script_screen');
    }
}